package com.r2coding.article.dao;

import com.r2coding.article.entity.LabelEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.r2coding.article.vo.req.LabelListReqVo;
import com.r2coding.article.vo.resp.LabelListRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-13 19:34:16
 */
@Mapper
public interface LabelDao extends BaseMapper<LabelEntity> {

    void updateLabelCategoryIdNull(@Param("labelId") Integer labelId);

    List<LabelListReqVo> selectAllLabels();

    LabelListReqVo getLabelById(@Param("labelId") Integer labelId);

    List<LabelEntity> getLabel();

    List<LabelEntity> selectArticleByLabelId(Integer labelId);
}
